<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">











<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Maven - </title>
    <style type="text/css" media="all">
      @import url("./css/maven-base.css");
      @import url("./css/maven-theme.css");
      @import url("./css/site.css");
    </style>
    <link rel="stylesheet" href="./css/print.css" type="text/css" media="print" />
          </head>
  <body class="composite">
    <div id="banner">
                  <a href="http://maven.apache.org/" id="bannerLeft">
    
                                    <img src="http://maven.apache.org/images/apache-maven-project.png" alt="" />
    
            </a>
                          <span id="bannerRight">
    
                                    <img src="http://maven.apache.org/images/maven-small.gif" alt="" />
    
            </span>
            <div class="clear">
        <hr/>
      </div>
    </div>
    <div id="breadcrumbs">
          
  

  
    
  
  
    
            <div class="xleft">
        Last Published: 2009-11-21
                      </div>
            <div class="xright">            <a href="http://www.apache.org/" class="externalLink">Apache</a>
            |
                <a href="http://maven.apache.org/" class="externalLink">Maven 1.0</a>
            |
                <a href="http://maven.apache.org/maven2/" class="externalLink">Maven 2</a>
            
  

  
    
  
  
    
  </div>
      <div class="clear">
        <hr/>
      </div>
    </div>
    <div id="leftColumn">
      <div id="navcolumn">
           
  

  
    
  
  
    
                   <h5>Main</h5>
            <ul>
              
    <li class="none">
                    <a href="5steps.html">5 Steps to create a Calm-enabled Google Code project</a>
          </li>
              
    <li class="none">
              <strong>Usage</strong>
        </li>
              
    <li class="none">
                    <a href="properties.html">Properties</a>
          </li>
              
    <li class="none">
                    <a href="configuration.html">Configuration</a>
          </li>
          </ul>
              <h5>Project Documentation</h5>
            <ul>
              
                
              
      
            
      
            
      
            
      
            
      
            
      
            
      
            
      
            
      
            
      
            
      
            
      
              
        <li class="collapsed">
                    <a href="project-info.html">Project Information</a>
                </li>
          </ul>
                                           <a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy">
            <img alt="Built by Maven" src="./images/logos/maven-feather.png"></img>
          </a>
                       
  

  
    
  
  
    
        </div>
    </div>
    <div id="bodyColumn">
      <div id="contentBox">
        <div class="section"><h2>Use It</h2>
<p>mvn clean deploy site site-deploy</p>
<p>It will deploy a snapshot artifact in your repository and the site in /svn/m2/site]</p>
<p>mvn release:prepare release:perform</p>
<p>It Will</p>
<p>- prompt you the version to tag and the next SNAPSHOT version to set on the trunk</p>
<p>- create the tag with the prompted version</p>
<p>- build and deploy the artifact on the releases repository (/svn/m2/releases)</p>
<p>- Deploy the site</p>
<p>- ... any other goal defined in <i>maven.release.goals</i></p>
<p>- Update the version on the trunk</p>
<p>- Update your local copy with the new trunk</p>
</div>
<div class="section"><h2>If it's a webapp ....</h2>
<p>mvn clean package jetty:run</p>
<p>Runs your webapp locally; you can alternatively use jetty:run-war or jetty:run-exploded</p>
<p>mvn clean package -P tomcat</p>
<p>Builds an Apache Tomcat 6.0.20 distribution in your target directory; this can be very handy in order to provide production-ready bundles of your application]</p>
<p>mvn clean integration-test -Pselenium</p>
<p>The Selenium tests must be in a **/selenium/** package</p>
<p>mvn clean package cargo:deployer-redeploy</p>
<p>Will use the maven.j2ee-deploy.** property set to deploy your webapp on a remote Tomcat Manager</p>
</div>
<div class="section"><h2>Customize it</h2>
<p>To see the properties that you can override you can just see the pom.xml definition of maven-calm!</p>
<p>http://maven-calm.googlecode.com/svn/m2/releases/com/sourcesense/maven/maven-calm/1.0-beta-21/maven-calm-1.0-beta-21.pom</p>
<p>Using property overriding you can:</p>
<p>Customize the behavior by setting different property values, i.e. by defining <i>maven.release.goals</i>install deploy site-deploy cargo:deployer-redeploy<i>/maven.release.goals</i> you can deploy your webapp on a remote Tomcat Manager instance during the release process (see mvn release:prepare release:perform)</p>
<p>Override plugin versions (see plugin.**.version property set in the pom)</p>
<p>Override any other plugin configuration property (i.e. eclipse.downloadSources = false)</p>
</div>

      </div>
    </div>
    <div class="clear">
      <hr/>
    </div>
    <div id="footer">
      <div class="xright">&#169;  
          2009
    
          
  

  
    
  
  
    
  </div>
      <div class="clear">
        <hr/>
      </div>
    </div>
  </body>
</html>
